<?php
header ("Content-Type:text/html; charset= utf-8");
require_once ('config.php');
require_once (WEBURL.'/login_status_check.php');
require_once (WEBURL.'/admin.class.php');
if(!checkLogin()){
	$gotopage=base64_encode("admin_modify_byself.php?id=$admin_id");
	header("Location:admin_login.php?gotopage=".$gotopage);
}
else{
	$admin=new Admin();
	
	$admin_info=$admin->getAdminInfoByAdminLoginName();
	$admin_id=$admin_info['admin_id'];
	$admin_name=$admin_info['admin_name'];
	$admin_type_id=$admin_info['admin_type_id'];
	$admin_true_name=$admin_info['admin_true_name'];
	$email=$admin_info['email'];
	$smarty->assign("admin_id",$admin_id);
	$smarty->assign("admin_name",$admin_name);
	$smarty->assign("admin_true_name",$admin_true_name);
	$smarty->assign("email",$email);
	
	
	$smarty->assign("title","修改个人信息");
	$smarty->display("admin_modify_byself.htm",md5("admin_modify.php"));
}
